<div class="layout_pesan">
<div class="menu_pesan"><span class="menu"><a href="dasbord.php?mod=home">Home</a> | Dosen | Download | <a href="logout.php">Logout</a></span></div><br/>
<div class="conten_pesan">

<a href='../mahasiswa/modul/pesan/form.php?width=371&height=210' class='thickbox button' title='Tambah Pesan'>Tambah Pesan</a>

<table width="681" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <th width="28">No</th>
    <th width="197">Nama</th>
    <th width="87">Kelas</th>
    <th width="258">Email</th>
 
  </tr>
   <?php 
 $aksi="module/mahasiswa/aksi.php";
 	$p      = new Paging;
    $batas  = 5;
    $posisi = $p->cariPosisi($batas);
 
 		$sql="select * from pesan ORDER BY id_pesan DESC LIMIT $posisi,$batas ";
		$query=@mysql_query($sql);
		$no=1 + $posisi;
		while ($r=@mysql_fetch_array($query)){
	 $tgl= tgl_indo($r['date']) 	
		
		?>
        
  <tr>
    <td><?=$no?></td>
    <td><?=$r['nama']?></td>
    <td><?=$r['kelas']?></td>
    <td><?=$r['email']?> </td>

  </tr>
  
  <? 
  $no++;
  } ?>
  
</table>
<center>
<?php 
    $jmldata = mysql_num_rows(mysql_query("SELECT * FROM pesan"));
    $jmlhalaman  = $p->jumlahHalaman($jmldata, $batas);
    $linkHalaman = $p->navHalaman($_GET[halaman], $jmlhalaman);

    echo "<div id=paging>$linkHalaman</div><br>";
  ?>
</center>
</div>
